package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————密码类
 * @date 2019-12-18 14:10
 */
@Entity
@Table(name = "passwd")
public class Passwd implements Serializable {

    private static final long serialVersionUID = -3954829830397971460L;

    @Id
    @GeneratedValue
    @Column(name = "passwd_Id")
    private Integer passwdId;// 密码ID

    @Column(name = "user_Id")
    private Integer userId;// 用户ID

    @Column(name = "password")
    private String password;// 密码

    @Column(name = "comment")
    private String comment;// 备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;// 创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;// 更新记录时间

    public Passwd() {
        // 无参构造
    }

    public Integer getPasswdId() {
        return passwdId;
    }

    public void setPasswdId(Integer passwdId) {
        this.passwdId = passwdId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Passwd [passwdId=" + passwdId + ", userId=" + userId + ", password=" + password + ", comment=" + comment
                + ", recordTime=" + recordTime + ", updateTime=" + updateTime + "]";
    }

}
